/**
 * 测试一段js代码执行耗时，可以使用performance
 */

let start = performance.now()
let sum = 0
for (let i = 0; i < 10000; i ++) {
    sum += i
}
let end = performance.now()

console.log(start)
console.log(end)
